<?php

namespace app\comm\service;
use think\Db;
/**
 * 聊天服务层
 * 
 */
class ChartService{
	
	/**
	 * 获取客服
	 * @return [type] [description]
	 */
	public function getkefu($storeid){
		//$map['authorize'] = ['in',4];
		$map['store_id'] = ['eq',$storeid];
		$list = Db::table('ys_system_user')->where($map)->field('id,username')->select();
		foreach ($list as $key => &$value) {
			$value['uid'] = 'backend'.$value['id'];
		}
		return $list;
	}
	

}
